<div id='note_<%= record.id %>' class="note">
  <div class='ud'>
    <%= link_to "修改", edit_record_customer_path(record),
          :remote => true,
          :class => 'crud edit no_loading'%>
    <%= link_to "删除", destroy_record_customer_path(record),
          :remote => true,
          :method => :delete,
          :confirm => '打算要删除该往来记录吗?',
          :class => 'crud delete no_loading'%>
  </div>
  <div class="title"><%= time_ago_in_words record.contacted_on, false %>前<small>(<%= record.contacted_on %> 星期三)</small></div>
  <div class="remark">记录人：<%= record.recorded_by.full_name %></div>
  <div class="content">
    <%= record.content %>    
  </div>
  <div class="edit_form hidden">  
    <form>
    <div>
      <textarea class="grid_10" ></textarea>
    </div>
    </form>    
    <div>
      <a onclick="$('#new_record_form').submit(); return false;" href="#" class="button">保存该记录</a>
      或<%= link_to_function "离开","$('.edit_form').hide()"  %>
    </div>
  </div>
  <!--div class='tools'>
    <%= link_to_function "赞扬(2)","$('.new_comment').show()"  %>
    <%= link_to_function "鼓励(1)","$('.new_comment').show()"  %>
    <%= link_to_function "建议(3)","$('.new_comment').show()"  %>
    <%= link_to_function "批评","$('.new_comment').show()"  %>
    <%= link_to_function "投诉","$('.new_comment').show()"  %>
    <%#= link_to_function "▶折起","script", :class => 'right fold'  %>
    <%#= link_to_function "▼展开","script", :class => 'right unfold hidden'  %>
  </div>
  <div class='comments'>
    <div class='top'>
      <div class='arrow'>▲</div>
    </div>
    <div class='comment new_comment'>
      <form>
      <div>
        <%= text_area_tag :content %>
      </div>
      <div class='right'>
        <%= submit_tag '保存' %>或 <%= link_to_function "离开","$('.new_comment').hide()"  %>
      </div>
      </form>
    </div>
      <% 2.times do %>
      <div class='comment first'>
        <div class='logo'>
          <%= image_tag 'users/unknown.png', :size => '32x32' %>
        </div>
        <div class='others'>
          <div class='nick_name'>真真</div>
          <div class='content'>
            怎么会这样子？
          </div>
          <div class='when'>
            回复于三天前 <%= link_to_function "回复","script"  %>
          </div>
        </div>
      </div>
      <% 3.times do  %>
      <div class='comment follows'>
        <div class='logo'>
          <%= image_tag 'users/man.png', :size => '32x32' %>
        </div>
        <div class='others'>
          <div class='nick_name'>真真</div>
          <div class='content'>
            怎么会这样子？
          </div>
          <div class='when'>
            回复于三天前 <%= link_to_function "回复","script"  %>
          </div>
        </div>
      </div>
      <% end %>
      <div class='comment new_comment new_follow_comment'>
      <form>
      <div>
        <%= text_area_tag :content %>
      </div>
      <div class='right'>
        <%= submit_tag '保存' %>或 <%= link_to_function "离开","$('.new_comment').hide()"  %>
      </div>
      </form>
    </div>
    <% end %>
    <div class='comment more'>
      <%= link_to "script"  do %>
      ▶点击看更多(<b>11</b>)...
      <% end %>
    </div>
    <div class='bottom'></div>
  </div-->
  <hr/>
</div>